package com.atguigu.behavior.strategy;

public class WildDuck extends Duck{



    public WildDuck() {
        this.setFlyBehavior(new GoodFlyBehavior());
        this.setQuackBehavior(new GagaQuackBehavior());
    }

    @Override
    public void init() {
        System.out.println("野鸭");
    }
}
